{"ast":null,"code":"import React from\"react\";import{Context}from\"../index\";import{observer}from\"mobx-react-lite\";import{EmptySelectedUser,UserProfile}from\"../components\";import{jsx as _jsx}from\"react/jsx-runtime\";var Contact=function Contact(){var _React$useContext=React.useContext(Context),store=_React$useContext.store;if(store.getViewedUserProfileId()&&store.getViewedUserProfile()){return/*#__PURE__*/_jsx(UserProfile,{profile:store.getViewedUserProfile(),selfProfile:false});}else{return/*#__PURE__*/_jsx(EmptySelectedUser,{});}};export default observer(Contact);","map":{"version":3,"names":["React","Context","observer","EmptySelectedUser","UserProfile","Contact","useContext","store","getViewedUserProfileId","getViewedUserProfile"],"sources":["/Users/poppie/Desktop/development/messenger/app/frontend/src/containers/Contact.tsx"],"sourcesContent":["import React from \"react\";\nimport {Context} from \"../index\";\nimport {observer} from \"mobx-react-lite\";\nimport {EmptySelectedUser, UserProfile} from \"../components\";\n\nconst Contact:React.FC = () => {\n    const {store} = React.useContext(Context);\n\n    if (store.getViewedUserProfileId()\n        && store.getViewedUserProfile()) {\n        return (\n            <UserProfile\n                profile={store.getViewedUserProfile()}\n                selfProfile={false}\n            />\n        );\n    } else {\n        return (<EmptySelectedUser />);\n    }\n};\n\nexport default observer(Contact);"],"mappings":"AAAA,MAAOA,MAAK,KAAM,OAAO,CACzB,OAAQC,OAAO,KAAO,UAAU,CAChC,OAAQC,QAAQ,KAAO,iBAAiB,CACxC,OAAQC,iBAAiB,CAAEC,WAAW,KAAO,eAAe,CAAC,2CAE7D,GAAMC,QAAgB,CAAG,QAAnBA,QAAgB,EAAS,CAC3B,sBAAgBL,KAAK,CAACM,UAAU,CAACL,OAAO,CAAC,CAAlCM,KAAK,mBAALA,KAAK,CAEZ,GAAIA,KAAK,CAACC,sBAAsB,EAAE,EAC3BD,KAAK,CAACE,oBAAoB,EAAE,CAAE,CACjC,mBACI,KAAC,WAAW,EACR,OAAO,CAAEF,KAAK,CAACE,oBAAoB,EAAG,CACtC,WAAW,CAAE,KAAM,EACrB,CAEV,CAAC,IAAM,CACH,mBAAQ,KAAC,iBAAiB,IAAG,CACjC,CACJ,CAAC,CAED,cAAeP,SAAQ,CAACG,OAAO,CAAC"},"metadata":{},"sourceType":"module"}